home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / PushBP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  2.4 KB  |  102 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: PushBP.h,v $ $Revision: 1.9 $ $Date: 92/05/14 12:55:02 $ */
  6. /*
  7. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  8. /*
  9. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  10. /*
  11. *  (c) Copyright 1988 MASSACHUSETTS INSTITUTE OF TECHNOLOGY  */
  12. /*
  13. *  (c) Copyright 1988 MICROSOFT CORPORATION */
  14. #ifndef _XmPButtonP_h
  15. #define _XmPButtonP_h
  16.  
  17. #include <Xm/PushB.h>
  18. #include <Xm/LabelP.h>
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23.  
  24. /* PushButton class structure */
  25.  
  26. typedef struct _XmPushButtonClassPart
  27. {
  28.    int foo;
  29. } XmPushButtonClassPart;
  30.  
  31.  
  32. /* Full class record declaration for PushButton class */
  33.  
  34. typedef struct _XmPushButtonClassRec {
  35.     CoreClassPart      core_class;
  36.     XmPrimitiveClassPart  primitive_class;
  37.     XmLabelClassPart      label_class;
  38.     XmPushButtonClassPart pushbutton_class;
  39. } XmPushButtonClassRec;
  40.  
  41.  
  42. externalref XmPushButtonClassRec xmPushButtonClassRec;
  43.  
  44. /* PushButton instance record */
  45.  
  46. typedef struct _XmPushButtonPart
  47. {
  48.    Boolean         fill_on_arm;
  49.    Dimension        show_as_default;
  50.    Pixel        arm_color;
  51.    Pixmap        arm_pixmap;
  52.    XtCallbackList   activate_callback;
  53.    XtCallbackList   arm_callback;
  54.    XtCallbackList   disarm_callback;
  55.  
  56.    Boolean         armed;
  57.    Pixmap        unarm_pixmap;
  58.    GC               fill_gc;
  59.    GC               background_gc;
  60.    XtIntervalId     timer;    
  61.    unsigned char    multiClick;        /* KEEP/DISCARD resource */
  62.    int            click_count;
  63.    Time            armTimeStamp;
  64.    Boolean      compatible;   /* if false it is Motif 1.1 else Motif 1.0  */
  65.    Dimension    default_button_shadow_thickness;  
  66.         /* New resource - always add it
  67.                     to widgets dimension. */
  68.  
  69. } XmPushButtonPart;
  70.  
  71.  
  72. /* Full instance record declaration */
  73.  
  74. typedef struct _XmPushButtonRec {
  75.     CorePart         core;
  76.     XmPrimitivePart  primitive;
  77.     XmLabelPart      label;
  78.     XmPushButtonPart pushbutton;
  79. } XmPushButtonRec;
  80.  
  81.  
  82. /********    Private Function Declarations    ********/
  83. #ifdef _NO_PROTO
  84.  
  85. extern void _XmClearBCompatibility() ;
  86.  
  87. #else
  88.  
  89. extern void _XmClearBCompatibility( 
  90.                         Widget pb) ;
  91.  
  92. #endif /* _NO_PROTO */
  93. /********    End Private Function Declarations    ********/
  94.  
  95.  
  96. #ifdef __cplusplus
  97. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  98. #endif
  99.  
  100. #endif /* _XmPButtonP_h */
  101. /* DON'T ADD ANYTHING AFTER THIS #endif */
  102.